//
//  THJMyHjbViewController.m
//  THJXHW
//
//  Created by 河南德艺 on 2018/8/9.
//  Copyright © 2018年 河南德艺. All rights reserved.
//

#import "THJMyHjbViewController.h"
#import "UIButton+ImageTitleSpacing.h"
#import "THJAcountDetailVC.h"
#import "THJTradeDetailVC.h"
#import "THJOutGoldVC.h"
#import "THJAllPayVC.h"
#import "THJBaozhengjinVC.h"
@interface THJMyHjbViewController ()

@end

@implementation THJMyHjbViewController
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.tabBarController.tabBar.hidden = YES;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    if(KIsiPhoneX){
        [self setXNavBarWithTitle:@"合金宝"];
    }else{
        [self setNavBarWithTitle:@"合金宝"];
    }
    [self.btn1 layoutButtonWithEdgeInsetsStyle:MKButtonEdgeInsetsStyleTop imageTitleSpace:5];
    [self.btn2 layoutButtonWithEdgeInsetsStyle:MKButtonEdgeInsetsStyleTop imageTitleSpace:5];
    [self.btn3 layoutButtonWithEdgeInsetsStyle:MKButtonEdgeInsetsStyleTop imageTitleSpace:5];
    [self.btn4 layoutButtonWithEdgeInsetsStyle:MKButtonEdgeInsetsStyleTop imageTitleSpace:5];
    [self.btn5 layoutButtonWithEdgeInsetsStyle:MKButtonEdgeInsetsStyleTop imageTitleSpace:5];
    // Do any additional setup after loading the view from its nib.
}
- (IBAction)btn1Action:(id)sender {
    [self.navigationController pushViewController:[THJAcountDetailVC new] animated:YES];
}
- (IBAction)btn2Action:(id)sender {
    THJOutGoldVC * vc =   [THJOutGoldVC new];
    vc.flag = @"出金";
    [self.navigationController pushViewController:vc animated:YES];
}
- (IBAction)btn3Action:(id)sender {
    [self.navigationController pushViewController:[THJBaozhengjinVC new] animated:YES];
 }
- (IBAction)btn4Action:(id)sender {
    [self.navigationController pushViewController:[THJTradeDetailVC new] animated:YES];
}
- (IBAction)btn5Action:(id)sender {
    THJOutGoldVC * vc =   [THJOutGoldVC new];
    vc.flag = @"余额";
    [self.navigationController pushViewController:vc animated:YES];
}

@end
